package com.zwb.boot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zwb.boot.dto.DishDto;
import com.zwb.boot.entity.Dish;
import com.zwb.boot.entity.DishFlavor;

import java.util.List;

/**
 * @author 头发又黑又长
 * @Date 2022/7/22 15:23
 * @email zwb15083976291@163.com
 */
public interface DishService extends IService<Dish> {

    Long countByCategoryId(Long id);


    /**
     * 新增菜品和 口味信息
     *
     * @param dishDto
     */
    void saveWithFlavor(DishDto dishDto);


    DishDto findByIdWithFlavor(Long id);

    void updateWithFlavor(DishDto dishDto);


    void deleteWithFlavor(Long id);

    void deleteWithFlavors(List<Long> ids);
}
